﻿using HelperFromTheSkeleton.Model.DomainModels;
using System.ComponentModel.DataAnnotations;

namespace Authority.Doamin.View
{
    /// <summary>
    /// 角色视图
    /// </summary>
    public class RoleView : TreeBaseDomain
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 角色编码
        /// </summary>
        public string Code { get; set; } = string.Empty;

        /// <summary>
        /// 角色功能
        /// </summary>
        public Dictionary<Guid, string> ActionInfo { get; set; } = new Dictionary<Guid, string>();

        /// <summary>
        /// 角色菜单
        /// </summary>
        public Dictionary<Guid, string> MenuInfo { get; set; } = new Dictionary<Guid, string>();

        /// <summary>
        /// 角色路由
        /// </summary>
        public Dictionary<Guid, string> RoutingInfo { get; set; } = new Dictionary<Guid, string>();
    }
}
